import * as React from 'react';
import { Table } from 'antd';
import '../../css/admin/adminList.scss'

interface IRootdata {
    admin_id: number;
    admin_name: string;
    pwd: string;
    is_enabled: number;
    real_name: string;
    mobile: string;
    email: string;
    wechat: string;
    qq: string;
    last_login_ip?: any;
    last_login_time?: any;
    last_logout_time?: any;
    login_times?: any;
    admin_remarks: string;
    role: number;
}
interface DataType {
    columns: any,
    rowKey: React.Key
    data: Array<IRootdata>,
    rowSelection: Object
}

const Tables: React.FC<DataType> = (props: any) => {
    return (<>
        <Table rowKey={props.rowKey} bordered={true} rowSelection={props.rowSelection} columns={props.columns} dataSource={props.data} />
    </>);
}

export default Tables;